package com.xiancheng;

import java.time.LocalDate;
import java.time.Period;
import java.time.format.DateTimeFormatter;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/2/25  9:51
 * 描述:
 */
public class TestXianCheng {
    public static void main(String[] args) throws ExecutionException, InterruptedException {


       /* Thread thread= new Thread(new MyRunable());

        thread.start();*/

      /*  FutureTask<String> futureTask=new FutureTask<String>(new MyCom());

        Thread thread1=new Thread(futureTask);

        thread1.start();

        System.out.println("===============");
        String s = futureTask.get();

        System.out.println(s);*/

      /*  Tr1 tr1=new Tr1();
        Tr1 tr2=new Tr1();
        Thread thread01=new Thread(tr1, "A");
        thread01.start();

        Thread thread02=new Thread(tr2, "B");
        thread02.start();*/


/*
        FutureTask<String> futureTask1=new FutureTask<String>(new MyCom());

        FutureTask<String> futureTask2=new FutureTask<String>(new MyCom());

        FutureTask<String> futureTask3=new FutureTask<String>(new MyCom());

        Thread t1=new Thread(futureTask1,"A")  ;
        Thread t2=new Thread(futureTask2,"B")  ;
        Thread t3=new Thread(futureTask3,"C")  ;

        t1.start();
        t2.start();
        t3.start();

        t1.join();
        t2.join();
        t3.join();

        System.out.println(futureTask1.get()+futureTask2.get()+futureTask3.get());*/

        /*synchronized ("7"){
            //hjhjjjjjjjjj
        }*/



    }


    public synchronized void test01(){

    }

    public synchronized static void test02(){

    }

}
